const ProductModel = require("../../models/ProductModel")

const ProductService = {
  getList:async (_id) => {
    return _id ? ProductModel.findById({_id}) : ProductModel.find({})
  }
}

module.exports = ProductService